import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';

///简单刷新组件
Widget simpleRefresh(
    {Widget child,
    OnRefreshCallback onRefresh,
    OnLoadCallback onLoad,
    bool loadDone = false}) {
  return EasyRefresh(
    header: MaterialHeader(),
    footer: MaterialFooter(),
    enableControlFinishRefresh: false,
    onRefresh: () => onRefresh(),
    onLoad: () => onLoad(),
    child: child,
  );
}
